package cn.heyige.backend.dto;

import cn.heyige.backend.entity.DivinationFeedbackDO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 用户占卜设置DTO
 * 用于前端展示和保存用户的个性化占卜设置
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserDivinationSettingsDTO {
    
    private Integer userId;
    private String username;
    
    // 个人信息
    private String birthLocation;
    private String currentCity;
    private String gender;
    private String moodStatus;
    
    // 占卜设置
    private Boolean applyFeedback = true;
    // AI人格切换 1:理性派, 2:毒舌派, 3:鸡汤派
    private Integer preferredAiFactor = 1;
    // 默认使用智谱AI
    private String preferredAiProvider = "zhipu";
    
    // 统计信息
    private Integer totalDivinations = 0;
    private Double accuracyRate = 0.0;
    
    // 最近反馈记录
    private List<DivinationFeedbackDO> recentFeedbacks = new ArrayList<>();
    
    // 分析结果
    private String cityElementAnalysis; // 城市五行分析
    private String moodPatternAnalysis; // 心情模式分析
}
